package edu.bw.Config;


import org.springframework.context.annotation.*;

import java.sql.Connection;


@Configuration
@ComponentScan("com.myspring")
@PropertySource("classpath:db.properties")
@Import(DBConfig.class)
public class SpringConfig {

    @Bean("threadLocal")
    public ThreadLocal<Connection>  creatThreadLocal(){
        return new ThreadLocal<>();
    }
}
